package com.lagou.sqlSession;

import java.util.List;

public interface SqlSession {

    //为Dao接口生成动态代理实现类
    public <T> T getMapper(Class<?> mapperClass);

    public <E> List<E> selectAll(String statementId,Object... params) throws  Exception;

    public <T> T selectOne(String statementId,Object... params) throws Exception;

/*    public Integer insert(String statementId,Object... params) throws Exception;

    public Integer delete(String statementId,Object... params) throws Exception;*/

    public Integer update(String statementId,Object... params) throws Exception;
}
